<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <h1>{{num+10}}</h1>
        <h2>{{num==10?"相等":"不相等"}}</h2>
        <h2>{{arr.sort()}}</h2>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: "hello vue 我来了",
                num: 10,
                arr: [3, 2, 1]
            },
            methods: {}
        });
    </script>
</body>

</html>